# 导包
import unittest
from test01_cast1 import TestDemo1
from test01_cast2 import TestDemo2

# 实例化套件对象
suit = unittest.TestSuite()

# 添加用例方法
# 套件对象.addTest(测试类名('测试方法名')) 建议复制
suit.addTest(TestDemo1('testMethod1'))
suit.addTest(TestDemo1('testMethod2'))
suit.addTest(TestDemo2('testMethod1'))
suit.addTest(TestDemo2('testMethod2'))

# 实例化 执行对象 unittest.TextTestRunner()
runner = unittest.TextTestRunner()
# 执行：执行对象.run(套件对象)
runner.run(suit)